package com.commute.data;
import java.util.LinkedList;



public class Route {
	String name;
	int id;
	LinkedList<Stop> stops;
	LinkedList<Trip> trips;
	public Route(String name, int id){
		this.name=name;
		this.id=id;
		this.stops = new LinkedList<Stop>();
		this.trips = new LinkedList<Trip>();
	}
	public void addStop(Stop stop){
		stop.addRoute(this.id);
		stops.add(stop);
	}
	
	public LinkedList<Stop> getStops(){
		return stops;
	}
	
	public LinkedList<Trip> getTrips(){
		return trips;
	}
	
	public String getRouteName(){
		return name;
	}
	
	public int getRouteId(){
		return id;
	}
	
}
